package fr.cephb.joperon.core.db;
import fr.cephb.joperon.core.Operon;
import fr.cephb.joperon.core.db.base.BasePrjSeqDB;
import fr.cephb.util.Pair;


/**
 * class PrjSeqDB
 */
public class PrjSeqDB
	extends BasePrjSeqDB
	{
	/**
     *
     * PrjSeqDB Constructor 
     *
     */
	public PrjSeqDB(Operon operon)
		{
		super(operon);
		}

		/**
     *
     * PrjSeqDB Constructor 
     *
     */
	public PrjSeqDB(Operon operon,fr.cephb.joperon.core.bio.Assembly assembly)
		{
		super(operon,assembly);
		}
	
	public static void main(String[] args) {
		Operon op=null;
		PrjSeqDB db=null;
		try {
			int n=0;
			op= Operon.newInstance();
			db= new PrjSeqDB(op);
			db.open();
			KeyValueIterator iter=db.listKeyValues();
			while(iter.hasNext())
				{
				Pair<?, ?> o=iter.next();
				System.err.println(o);
				if(++n==100) break;
				}
			iter.close();
		} catch (Exception e) {
			e.printStackTrace();
			}
		finally
			{
			if(db!=null) db.safeClose();
			if(op!=null) op.safeClose();
			}
		}
	}

